package org.example.curriculum_design_6_16.service;

import org.example.curriculum_design_6_16.entity.pojo.CompetitionCatalog;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.curriculum_design_6_16.entity.vo.Result;


import java.util.List;

/**
* @author 郑凯
* @description 针对表【competition_catalog】的数据库操作Service
* @createDate 2025-06-22 21:30:17
*/
public interface CompetitionCatalogService extends IService<CompetitionCatalog> {
    int addCompetition(CompetitionCatalog competitionCatalog);
    int updateCompetition(CompetitionCatalog competitionCatalog);
    int deleteCompetition(Integer id);
    CompetitionCatalog getCompetitionById(Integer id);
    List<CompetitionCatalog> getAllCompetitions();
    List<CompetitionCatalog> getCompetitionsByLevelAndCategory(String level, String category);
    public CompetitionCatalog getCompetitionByName(String competitionName);
}
